const topFiles = require.context('./', false, /\.vue$/)

let normalTopTabs={}

topFiles.keys().forEach((key,index) => {
    //   tabs[key.replace(/(\.\/|\.vue)/g, '')] = files(key).default
        let filename=key.replace(/(\.\/|\.vue)/g, '')
        let tab={
            label:filename,
            name:filename,
            active:true,
            normal:true,
            component:topFiles(key).default
        }
        normalTopTabs[filename]=tab
})

export default normalTopTabs